/*
 * Copyright 2017 Baiyyy
 * @(#)TSHumitureMapper.java
 */

package com.byyy.ccts.modules.ysjl.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byyy.ccts.modules.ysjl.entity.YsjlActivityEnroll;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by DELL on 2018-5-7.
 */
public interface YsjlActivityEnrollMapper extends BaseMapper<YsjlActivityEnroll> {

    /** 自定义分页 */
    List<YsjlActivityEnroll> queryEnrollListPage(Page<YsjlActivityEnroll> page, @Param("ew") Wrapper<YsjlActivityEnroll> wrapper);

    /** 根据活动ID查询活动列表 */
    List<YsjlActivityEnroll> queryListByActivityId(String activityId);

    /** 根据活动ID和用户ID查询活动列表 */
    List<YsjlActivityEnroll> queryMyListByActivityId(@Param("activityId") String activityId, @Param("userId") String userId);

    /** 根据活动ID和用户ID删除活动下所有用户信息 */
    void deleteEnrollByUser(@Param("activityId") String activityId, @Param("userId") String userId);

}
